package com.ruoyi.customerSample.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;
import java.util.List;

/**
 * 退样登记对象 back_sample_bill
 * 
 * @author ruoyi
 * @date 2023-05-15
 */
@ApiModel("退样登记")
public class BackSampleBill extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 项目编号 */
    @Excel(name = "项目编号")
    @ApiModelProperty(value = "项目编号")
    private String itemNum;

    /**退样单位 */
    @Excel(name = "退样单位")
    @ApiModelProperty(value = "退样单位")
    private String itemAdress;

    /** 退样登记人 */
    @Excel(name = "退样登记人")
    @ApiModelProperty(value = "退样登记人")
    private String registrant;

    /** 退样登记时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退样登记时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "退样登记时间")
    private Date registrantTime;

    /** 退样地址 */
    @Excel(name = "退样地址")
    @ApiModelProperty(value = "退样地址")
    private String adress;

    /** 接收人 */
    @Excel(name = "接收人")
    @ApiModelProperty(value = "接收人")
    private String receiver;

    /** 接收人电话 */
    @Excel(name = "接收人电话")
    @ApiModelProperty(value = "接收人电话")
    private String receivePhone;

    /** 明细列表 */
    @ApiModelProperty(value = "明细列表")
    private List<BackSampleDetail> list;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setItemNum(String itemNum) 
    {
        this.itemNum = itemNum;
    }

    public String getItemNum() 
    {
        return itemNum;
    }
    public void setItemAdress(String itemAdress)
    {
        this.itemAdress = itemAdress;
    }

    public String getItemAdress()
    {
        return itemAdress;
    }
    public void setRegistrant(String registrant) 
    {
        this.registrant = registrant;
    }

    public String getRegistrant() 
    {
        return registrant;
    }
    public void setRegistrantTime(Date registrantTime) 
    {
        this.registrantTime = registrantTime;
    }

    public Date getRegistrantTime() 
    {
        return registrantTime;
    }
    public void setAdress(String adress) 
    {
        this.adress = adress;
    }

    public String getAdress() 
    {
        return adress;
    }
    public void setReceiver(String receiver) 
    {
        this.receiver = receiver;
    }

    public String getReceiver() 
    {
        return receiver;
    }
    public void setReceivePhone(String receivePhone) 
    {
        this.receivePhone = receivePhone;
    }

    public String getReceivePhone() 
    {
        return receivePhone;
    }

    public List<BackSampleDetail> getList() {
        return list;
    }

    public void setList(List<BackSampleDetail> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("itemNum", getItemNum())
            .append("itemName", getItemAdress())
            .append("registrant", getRegistrant())
            .append("registrantTime", getRegistrantTime())
            .append("adress", getAdress())
            .append("receiver", getReceiver())
            .append("receivePhone", getReceivePhone())
            .toString();
    }
}
